﻿using ConsoleApp1;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class DeliveryRobot:Robot
    {
        public int hours;


        public DeliveryRobot(string name, int hours) : base(name)
        {
            this.hours = hours;
        }

        public override void Working()
        {
            Console.WriteLine("我是传菜机器人，我叫{0}，工作了{1}小时",this.Name ,this.hours);
        }
    }
}
